IdeaBlade.Core Assembly > IdeaBlade.Core.Composition Namespace > CompositionHost Class > GetExportedInstance Method : GetExportedInstance<T>(Boolean,ImportCardinality,CreationPolicy,CompositionContext) Method |
'Declaration
Public Overloads Function GetExportedInstance(Of T)( _ Optional ByVal acceptDefault As Boolean, _ Optional ByVal cardinality As ImportCardinality, _ Optional ByVal policy As CreationPolicy, _ Optional ByVal context As CompositionContext _ ) As T
'Usage
Dim instance As CompositionHost Dim acceptDefault As Boolean Dim cardinality As ImportCardinality Dim policy As CreationPolicy Dim context As CompositionContext Dim value As T value = instance.GetExportedInstance(Of T)(acceptDefault, cardinality, policy, context)
public T GetExportedInstance<T>( bool acceptDefault, ImportCardinality cardinality, CreationPolicy policy, CompositionContext context )
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2